package router

import (
	a "client/api"
	g "client/global"
	"github.com/gin-gonic/gin"
)

func init() {
	g.Router.GET("index", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"code": 200,
			"msg":  "success",
		})
	})
	g.Router.POST("login", a.UserLogin)
	g.Router.POST("es/add", a.AddFruit)
	g.Router.POST("es/inquire", a.InquireFruit)
	g.Router.POST("es/ik/index", a.CreateIkIndex)
	g.Router.POST("file/upload", a.UploadFile)
	g.Router.POST("range", a.Range)
}
